You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A short example: if we don't specify a prefix like that, then a geospatial library with a geographic map method cannot be made Fantasyland compatible, because Fantasyland claims the ownership of the map method. But with the prefix, there's no conflict. It does make these docs hard to read, though, and I'd love to see a good fix for that.
@babak-karimi-asl I think it's because of what Fantasy Land tries to be. Fantasy Land is: "A specification for interoperability of common algebraic structures", not "a specification of common algebraic structures". Therefore, with the focus on interoperability, the exact JavaScript structures take the front stage and legibility of the laws (which are defined in many other places) comes second.
for example instead of writing :
a['fantasy-land/equals'](a) === true
why not just:
a.equals( a ) === true
, or just simplya equals a
.or this:
a['fantasy-land/concat'](b)['fantasy-land/concat'](c) is equivalent to a['fantasy-land/concat'](b['fantasy-land/concat'](c))
(associativity)to this:
a.concat(b).concat(c) === a.concat(b.concat(c))
(associativity)these concepts are confusing enough by themselves, specially for beginners , so no need to add more complications.
The text was updated successfully, but these errors were encountered: