Changes between Version 1 and Version 2 of Ticket #6526, comment 11


Ignore:
Timestamp:
06/18/2018 10:48:00 AM (16 months ago)
Author:
sergz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6526, comment 11

    v1 v2  
    44 
    55I would propose to start with own implementation of `std::optional`, let's call it `Maybe` with the explicit template specification only for `JsValue` so far, since it seems can be implemented in a relatively efficient way. Perhaps it will also cover most cases of the deprecated API. 
    6 JIC, here I mean there will be a special implementation to work with internals of JsValue, not a generic one. 
     6JIC, here I mean that there will be a special implementation to work with internals of JsValue, not a generic one. 
    77 
    88Additionally what do you think about map/flatmap/bind/get/ifPresent/orElse/etc functions (of course add them only when they are required) either as a mixin (perhaps via CRTP) or just template functions? E.g. it seems we are not using thousands of operations with them, so any overhead like lambdas should not be an issue but perhaps it reduces a huge arising boilerplate code.