[bitc-dev] newbie questions

Elias Gabriel Amaral da Silva tolkiendili at gmail.com
Sun Apr 4 02:30:54 PDT 2010


2010/4/4 Elias Gabriel Amaral da Silva <tolkiendili at gmail.com>:
> I have two simple questions (that could be replied pointing to documentation)
>
> a) is there a type for "pure" functions? i.e. functions whose return
> value depends solely on the parameters [hhmm, are them labeled
> 'const'?]

It looks like http://www.bitc-lang.org/docs/bitc/bitc-origins.html#Effects
answers that, but I'm not sure if pure bitC functions are exactly what
I described; for me, a pure function can remain pure even if it do
variable assignments, as long as its state handling does not "leak".


-- 
Elias Gabriel Amaral da Silva <tolkiendili at gmail.com>


More information about the bitc-dev mailing list