This pull request removes all additional getters and retains only the one associated with the field name. It is advisable to use uniform getters for consistency. If additional getters are desired, extensions can be made on a project basis.
I would stick to just v for Option and Ok, and e for Err because they are concise and because this makes using pattern matching more straightforward. E.g. the following snippet
This pull request removes all additional getters and retains only the one associated with the field name. It is advisable to use uniform getters for consistency. If additional getters are desired, extensions can be made on a project basis.
I would stick to just
v
forOption
andOk
, ande
forErr
because they are concise and because this makes using pattern matching more straightforward. E.g. the following snippetis more verbose than the next one
I also believe, for example, that having one field with four getters for 'Err' is a bit excessive.
What is your opinion on this?
Note: dart formatted the source code and replaced tabs with empty spaces.