redstone-dart / redstone

A metadata driven microframework for Dart.
http://redstone-dart.github.io/redstone
MIT License
342 stars 42 forks source link

Breaking change with `encode` and `decode`? #78

Closed cgarciae closed 9 years ago

cgarciae commented 9 years ago

I've recently checked the documentation and notice that the new functions encode and decode are being promoted as a replace for encodeJson and decodeJson.

  1. No example was given on how to use decode
  2. Can you still use encodeJson and decodeJson? If not, it would be better to deprecate methods and create new ones instead of refactoring as to give people a chance to migrate without braking their code.
luizmineo commented 9 years ago

Actually, encodeJson and decodeJson are newer than decode and encode, and they aren't replacements, but auxiliary functions

cgarciae commented 9 years ago

Ohh, great to hear. I was surprise by the change tho. Thanks!