python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Longest prefix of an OCaml `string list` ending in a specific `string` value
I am trying to work out whether there is a particularly neat or efficient way of truncating a string after the final occurrence of a specific element. For my purposes, it is a monomorphized string lis...
archaephyrryx
Votes: 0
Answers: 1
Is there a graceful approach to deserializing Go interface types?
Given the following:
type Foo struct {
Td ThingDoer
// ... other stuff
}
type ThingDoer interface {
doThing()
}
type doerA struct {
AGuts string
}
func (a doerA) doThing() {}
type doerB st...
NiloCK
Votes: 0
Answers: 1
Idiomatic way to handle errors with an early return in Rust
I currently have the below code to handle the case where I want to handle an error without propagation or continue the function. The use case for this is a web server controller, where I would prefer ...
JamesGill
Votes: 0
Answers: 1
What is the zsh idiom for using functions that can return success or failure as well as a list
I am looking for the "best way" or the accepted zsh idiom for creating and using functions that can return success or failure as well as a list or other text value.
Currently I am doing this...
pedz
Votes: 0
Answers: 1