Closed darkf closed 4 years ago
Ugh, application of symbols as invocation of the associated named function is an annoying reversal if it's true in general for k6. I had this behavior previously and then took it out.
I don't think it's a general thing -- i.e:
foo:{x}
`foo 3
will be a value error, but
`sin 3
is how you invoke the built-in sin now in K6. Don't you just love arthur's design process, it's almost sinusoidal .:)
I think for the time being I'm going to stick with "special" named verbs at the parser level. Perhaps I might decide later to go with symbol application like this someday, but it'll be a huge mess to update everything.
In K6 now,
sin 3
is an error, it should be `sin 3. oK does not support this.Furthermore, there is what I believe to be a bug in the current implementation:
sin
and{sin x}
should be eta-equivalent.