Hacker Times
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
thestoicattack
on July 12, 2018
|
parent
|
context
|
favorite
| on:
“I'm basically giving myself a permanent vacation ...
C++17 has if-statement initializers, so you can do
if (auto x = re_match(foo, bar); x.has_value()) {
(or x.ok() or whatever the name is of the method that tells you the validity of x)
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: