Nathanial Murphy

Results 8 comments of Nathanial Murphy

Out of curiosity: - Is there any reason you didn't use the `%+v` flag instead of the `%#v` flag, and - Would you feel it's "within scope" to add a...

That's an interesting question. Not sure it's one I can safely answer, haha. Initial gut feel would be: ```go func WithEngineOptions(... config) Runner type config func(engine) //

We've an external endpoint that currently uses a reserved word from golang as one of the method parameters (type). If the struct implementation you mentioned lets you use json tags...

I think [this](https://nlp.stanford.edu/pubs/schuster2017gapping.pdf) is relevant, but @ work so I can't verify it's the case. If it is, I'll see if I can extend lingo to deal with gapping entries.

possibly - I believe (from what I can remember) that they're actually implied in the sentence. Not sure if giving up that fidelity is worth it.

Half the issue would be go's duck typing, wouldn't it? Since any type can fulfil any interface implicitly, you'd need to manually check each one.

I agree with you when it comes to things like `int` and `string`. I was talking about type switches operating on interfaces like the following: ```go func foo(x interface{}) {...

No problem! Most people don't consider the pathological case that our more "inspired" coworkers take. As an aside - the struct doesn't _need_ to be anon & inline to match,...