3 ms·
I'd argue: Use a langauge with generics and make the path type a ((de-)serializable) black box. You still need to make a decision in the end, but are much more
by Ericson2314 10y ago
I'd argue: Use a langauge with generics and make the path type a ((de-)serializable) black box.
You still need to make a decision in the end, but are much more free to change it.
- jstimpfle 10y agoThis is not a language issue.
- Ericson2314 10y agoI didn't say it was. I said generics would help one easily switch their choice on the different semantics, not avoid choosing at all.
- jstimpfle 10y agoMany, or most, languages already do that by representing filenames as native strings (which are usually abstract "Unicode" strings).
- Ericson2314 10y agoI want to swap the path type used by the FS implementation. This is totally distinct from a langauge providing some string type which while abstract is nevertheless fixed and unchangable.
- daenney 10y agoBoth Objective-C and Swift have (a form of) generics on board.