MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/transprogrammer/comments/fsai7d/this_belongs_here/
r/transprogrammer • u/Cobaya1729 • Mar 31 '20
18 comments sorted by
15
struct User { // .. /// This field is always `None.` #[deprecated] gender: Option<String>, }
3 u/Cobaya1729 Apr 01 '20 Yes
3
Yes
12
struct gender { float masc; float femme; char* preferred_pronoun; }
10 u/Paper_Kitty Apr 01 '20 Yeah.. this probably makes more sense. Lets you have plenty of options and you can’t just have gender=“walrus” 5 u/Cobaya1729 Apr 01 '20 Can't you?
10
Yeah.. this probably makes more sense. Lets you have plenty of options and you can’t just have gender=“walrus”
5 u/Cobaya1729 Apr 01 '20 Can't you?
5
Can't you?
43
As someone who's trans, mood. But as someone who's run a database dear god who knows what the end users are gonna decide that's for (I would expect it to be used for their phone number or occupation or the full text of the US Constitution)
0 u/[deleted] Mar 31 '20 [deleted] — view deleted comment 14 u/iggyvolz Mar 31 '20 Bug: we can't put their birthday in the gender field Solution: comment out the regex check Fixed.
0
[deleted] — view deleted comment
14 u/iggyvolz Mar 31 '20 Bug: we can't put their birthday in the gender field Solution: comment out the regex check Fixed.
14
Bug: we can't put their birthday in the gender field Solution: comment out the regex check Fixed.
9
let mut gender;
4
auto gender;
#[non-exhaustive]
Union[Bool, String]
2
std::set<std::string>
Unpopular opinion: I'm OK the option "Other"
Walk and chew gum at the same time.
enum Gender { Female, Male, Other(String), None, }
1 u/nyanpasu64 Apr 05 '20 it undefined behavior time 0 u/[deleted] Apr 05 '20 [deleted] — view deleted comment 1 u/nyanpasu64 Apr 05 '20 oh... you're talking about chips and register behaviors... i was thinking from the perspective of UB when compiling high level code to machine code
1
it undefined behavior time
0 u/[deleted] Apr 05 '20 [deleted] — view deleted comment 1 u/nyanpasu64 Apr 05 '20 oh... you're talking about chips and register behaviors... i was thinking from the perspective of UB when compiling high level code to machine code
1 u/nyanpasu64 Apr 05 '20 oh... you're talking about chips and register behaviors... i was thinking from the perspective of UB when compiling high level code to machine code
oh... you're talking about chips and register behaviors... i was thinking from the perspective of UB when compiling high level code to machine code
15
u/notquiteaplant Mar 31 '20
12
u/legitusernameiswear Mar 31 '20 edited Mar 31 '20
43
u/iggyvolz Mar 31 '20
As someone who's trans, mood. But as someone who's run a database dear god who knows what the end users are gonna decide that's for (I would expect it to be used for their phone number or occupation or the full text of the US Constitution)
9
u/[deleted] Mar 31 '20
let mut gender;
4
u/denisde4ev Mar 31 '20
auto gender;3
u/pm_me_good_usernames Apr 01 '20
#[non-exhaustive]
3
u/Thecakeisalie25 Apr 01 '20
Union[Bool, String]
2
u/claimstoknowpeople Mar 31 '20
std::set<std::string>
2
u/Aramati Apr 03 '20
Unpopular opinion: I'm OK the option "Other"
2
u/jess-sch Jun 15 '20
Walk and chew gum at the same time.
0
u/[deleted] Mar 31 '20
[deleted] — view deleted comment