what happens when the function takes a string as a parameter and the string contains bracket and commas? e.g. call function("This will break, your idea (maybe?)")
Instead of passing a function to another function, the first function can just be evaluated in the parameter expression like this
function add a b
return a b
function two
return 2
print add(1, two())
That would be hard to do without building a full-blown syntax parser, how would you figure out how many parameters are in this function call
function name((x 1)-2, function2((a-1),b))
Ok wow - the markdown is a bit different to what I am used to using. Lets try that again because there doesn't seem to be a way to edit my post
Working code
2 is printed
3 is printed afterwards
value - 1
function increment
value - value 1
...
Hey,
Thought we could share interesting and weird ml code to test our work. Here is one I came up with
mlcode
2 is printed
3 is printed afterwards
value - 1
function increment
value - value 1
Function call with parens right against the na...