Using brackets for CaptureWorld and UpdateWorld

Blitz3D Forums/Blitz3D Beginners Area/Using brackets for CaptureWorld and UpdateWorld

fox95871(Posted 2009) [#1]
Hi, I saw someones version of the render tween use brackets after these two commands and I've never used them before. Does it work either way? I know I've seen commands that don't work at all without brackets.


Gabriel(Posted 2009) [#2]
AFAIK brackets are optional on all function calls. The only side-effect is that nothing is returned when you leave them out. So anything which needs to return a result won't behave as expected without brackets. Personally I find it extremely bad practice to miss out brackets. It makes your code very ambiguous to read and can lead beginners to make mistakes.


GfK(Posted 2009) [#3]
Any function that needs a value to be returned, needs brackets. Otherwise they are optional, but I always use them for clarity so there's a visible difference between functions and variables.

Personally I find it extremely bad practice to miss out brackets. It makes your code very ambiguous to read and can lead beginners to make mistakes.
....or to put it another way; what he said. ^^