News for hackers. Stuff that matters.
Re:Wasp: WASM Programming Language by TheMatten on Friday November 05, 2021 @09:39AM (#29119045)
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)
Re:Wasp: WASM Programming Language by postalrat on Friday November 05, 2021 @10:10AM (#29119485)
Is it one of these?

  fibonacci (it) - 1 + fibonacci (it) - 2
  fibonacci (it - 1) + fibonacci (it - 2)
  fibonacci (it - 1 + fibonacci (it - 2))
Re:Wasp: WASM Programming Language by marcosdumay on Friday November 05, 2021 @10:48AM (#29120056)
On 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.
Re:Wasp: WASM Programming Language by heinrich5991 on Friday November 05, 2021 @09:49AM (#29119177)
In this case (and if it were interpreted as Haskell syntax), the above term would be wrong.