Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tyilo
6 months ago
|
parent
|
context
|
favorite
| on:
Breaking "provably correct" Leftpad
What is the expected output of padding "﷽"? It is only one code point but very wide.
mmis1000
6 months ago
[–]
There is a definition file on unicode spec about a character should be n half-width in monospacr context. Not sure if it includes all symbol though. Also don't know if it handles symbol that has more than 2 half-width
https://www.unicode.org/reports/tr11/
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: