PreviousUpNext

10.5.3  Function application

Within Mythryl expressions, function application binds more tightly than anything but prefix, postfix and circumfix operators.

In particular, it binds more closely than infix operators. For example sin 0.0+1.0 is (sin 0.0)+1.0 not sin (0.0+1.0):

    linux$ my

    eval:  sin 0.0+1.0

    1.0

    eval:  (sin 0.0)+1.0

    1.0

    eval:  sin (0.0+1.0)

    0.841470984808

This can be a trap for the unwary newcomer!

Remember: Function application binds more tightly than (almost) anything else!


Comments and suggestions to: bugs@mythryl.org

PreviousUpNext