json2.decoder2: prepare decoder in json2 to be replaced by json2.decode2#23078
json2.decoder2: prepare decoder in json2 to be replaced by json2.decode2#23078spytheman merged 7 commits intovlang:masterfrom
Conversation
|
No, deprecations of public functions take time. Add at least 1 month starting from today. Alternatively, just do not deprecate the method, and leave it as it is, including its tests. |
I prefer to make them deprecated. When x.json2 becomes just json, probably none of these methods will be part of the library. I hope |
|
They are public API, public APIs should have a deprecation period. It is very rude to users of your libraries, to make breaking changes like this, especially if you have an easy way to avoid it. |
| } | ||
|
|
||
| // decode_array is a generic function that decodes a JSON string into the array target type. | ||
| pub fn decode_array[T](src string) ![]T { |
There was a problem hiding this comment.
moved to vlib/x/json2/decoder_deprecated.v
Huly®: V_0.6-21517