Re: XRM 41: Add the rand() builtin.

"SIGOURE" == SIGOURE Benoit <sigoure.benoit@lrde.epita.fr> writes:
+ %% ExpressionFunc ::= + %% (* older builtin functions for backwards compat. *) + %% "rand" "(" Expression {"," Expression} ")" + %% (* builtin functions calls using the "func" notation *) + %% | "func" "(" "rand" "," Expression {"," Expression} ")"
What do you mean by "older"? Why did you choose to also include the "func" feature? Why did you choose the name of the functions to be defined in the grammar?

Akim Demaille <akim@lrde.epita.fr> writes:
"SIGOURE" == SIGOURE Benoit <sigoure.benoit@lrde.epita.fr> writes:
+ %% ExpressionFunc ::= + %% (* older builtin functions for backwards compat. *) + %% "rand" "(" Expression {"," Expression} ")" + %% (* builtin functions calls using the "func" notation *) + %% | "func" "(" "rand" "," Expression {"," Expression} ")"
What do you mean by "older"? Why did you choose to also include the "func" feature?
PRISM defines different ways to call a built-in function ; IIRC, we should now use « func (builtin, param, param) », albeit, for backward compatibility, « builtin (param, param) » is kept. -- | Isn't vi that text editor with Michaël `Micha' Cadilhac | | two modes... One that beeps and cadilh_m - Epita 2007 - CSI | | one that corrupts your file? JID: micha@amessage.be | `-- - - -- Dan Jacobson - - --'

"Michaël" == Michaël Cadilhac <michael.cadilhac@lrde.org> writes:
Akim Demaille <akim@lrde.epita.fr> writes:
"SIGOURE" == SIGOURE Benoit <sigoure.benoit@lrde.epita.fr> writes:
+ %% ExpressionFunc ::= + %% (* older builtin functions for backwards compat. *) + %% "rand" "(" Expression {"," Expression} ")" + %% (* builtin functions calls using the "func" notation *) + %% | "func" "(" "rand" "," Expression {"," Expression} ")"
What do you mean by "older"? Why did you choose to also include the "func" feature?
PRISM defines different ways to call a built-in function ; IIRC, we should now use « func (builtin, param, param) », albeit, for backward compatibility, « builtin (param, param) » is kept.
Any rationale?

Akim Demaille <akim@lrde.epita.fr> writes:
"Michaël" == Michaël Cadilhac <michael.cadilhac@lrde.org> writes:
Akim Demaille <akim@lrde.epita.fr> writes:
"SIGOURE" == SIGOURE Benoit <sigoure.benoit@lrde.epita.fr> writes:
+ %% ExpressionFunc ::= + %% (* older builtin functions for backwards compat. *) + %% "rand" "(" Expression {"," Expression} ")" + %% (* builtin functions calls using the "func" notation *) + %% | "func" "(" "rand" "," Expression {"," Expression} ")"
What do you mean by "older"? Why did you choose to also include the "func" feature?
PRISM defines different ways to call a built-in function ; IIRC, we should now use « func (builtin, param, param) », albeit, for backward compatibility, « builtin (param, param) » is kept.
Any rationale?
Esoteric programming languages aren't reasonable. -- | Pour les 35-40 ans, l'humour Michaël `Micha' Cadilhac | | c'est une plus-value. cadilh_m - Epita 2007 - CSI | | -- Guillaume L. JID: micha@amessage.be | `-- - - - - --'
participants (2)
-
Akim Demaille
-
michael.cadilhac@lrde.org