Comment on Wasp: WASM Programming LanguageparentComments−TheMatten4yThis really just seems to be ML-style syntax - which is not ambiguous at all, it's just different from C-like languages (functions applied one argument at a time, with function application (empty space) having the biggest precendece)−postalrat4yIs it one of these? fibonacci (it) - 1 + fibonacci (it) - 2 fibonacci (it - 1) + fibonacci (it - 2) fibonacci (it - 1 + fibonacci (it - 2))−marcosdumay4yOn any sane ML-style language, it would be this: (fibonacci it) - 1 + (fibonacci it) - 2 But I guess it isn't the case here, because that code doesn't make sense.−heinrich59914yIn this case (and if it were interpreted as Haskell syntax), the above term would be wrong.
Comments
This really just seems to be ML-style syntax - which is not ambiguous at all, it's just different from C-like languages (functions applied one argument at a time, with function application (empty space) having the biggest precendece)
Is it one of these?
On any sane ML-style language, it would be this:
But I guess it isn't the case here, because that code doesn't make sense.In this case (and if it were interpreted as Haskell syntax), the above term would be wrong.