Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mercurial
on Sept 18, 2014
|
parent
|
context
|
favorite
| on:
Let's build a browser engine, Part 6: Block layout
I thought about aliasing true to width_is_auto/margin_right_is_auto, margin_left_is_auto, but sadly you don't seem to be able to use the aliases as patterns with my version of Rust.
dbaupp
on Sept 18, 2014
[–]
Using static variables like
static width_is_auto: bool = true;
should work.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: