allbase --> tankfeeder / exercism-io / a-f.l /Lindsay
On Tue, Feb 28, 2017 at 3:41 AM, Danilo Kordic <danilo.kor...@gmail.com> wrote: >> If you are going to use a list, could also just put the 'scale' in a property >> of the list? > > I wouldn't call it a propert to avoid confusion with PicoLisp `prop'erties. > > I couldn't find `allbase'. > > I had [[https://en.wikipedia.org/wiki/Algebraic_data_type][Algebraic > DataTypes]] > in mind, just like fractions. > > (= (Float B S E) > (* S (** B E)) ) > > > ``(314 E -2)'' looks like > [[https://en.wikipedia.org/wiki/Scientific_notation][Scientific > notation]]. > And wouldn't cause an error in PicoLisp. > > Current implementation of PicoLisp numbers is also a linked list: > [path "@doc64/structures"]. Too bad they can not be manipulated like any > other > list. Base is (** 2 64). > > [[https://en.wikipedia.org/wiki/Quote_notation][Quote notation]]: If we > allow > circular reference in the `Num' structure it will result in a subset of > rational numbers. Arithmetic Shift, `AS', will give the rest. > ``I mean, how hard could it be? '' > -- > UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe