1) symbols are not GC'd

2) all external input is string (eg. yaml)


symbols as keys are a feature that saves on char and costs many hours.






On Oct 12, 12:30=A0pm, unbewusst.s... / fai.invalid (Une B=E9vue) wrote:
> ara.t.howard <ara.t.how... / gmail.com> wrote:
> > map does use strings:
> >http://github.com/ahoward/map/blob/master/lib/map.rb#L123
>
> why did u choose this feature, i was surprised of that :
> require 'rubygems'
> require 'map'
>
> m=3DMap[{:un =3D> 1, :deux =3D> 2, :trois =3D> 3, :quatre =3D> 4}]
> puts "# =3D> m.keys.first.class =3D #{m.keys.first.class}"
> # =3D> m.keys.first.class =3D String
> --------------------------^^^^^^^
> i expected Symbol...
> (clearly that's your line 123 :
> key.kind_of?(Symbol) ? key.to_s : key)
>
> because of ordering ?
>
> --
> =A0 N'essayez pas de noyer vos chagrins : ils savent nager.
> =A0 =A0 (Albert Willemetz)