Better HN
topnewbestaskshowjobs
Log inSign up

yaglo

57 karma · joined Nov 8, 2023 (3y ago) · 8 submissions

Submissions

comment 1w ago · link · parent

There's also Ubiquitty (https://ubiquitty.org) that implements it. I haven't publicised it yet, but will do soon.

comment 3y ago · link · parent

Because they swapped some characters like \ to /, if I remember correctly.

comment 3y ago · link · parent

1. Every class/method/function/whatever declaration is an API, doesn't matter if it's internal or which language it's written. 2. Why do you think it's better? It looks like it tries to cater to everyone, and leads to inconsistent API usage and requires teams to agree on linting rules and use tools to enforce consistent coding standards. 3. It's a tool for _you_ to design good APIs that are clear. Languages without named arguments don't give you this tool.

> So does renaming a label.

In languages without this feature, any renaming breaks the API, unlike the ones with distinct internal and external names. This is not the same.

comment 3y ago · link · parent

Within Xcode, you don’t really need it because you’re already running with a debugger when you launch your program.

comment 3y ago · link · parent

Yes, you can evaluate Swift code in LLDB. See https://stackoverflow.com/a/71882942

comment 3y ago · link · parent

It’s a nicer experience during development out of the box, without having to do anything manually.

Swift Backtracing is not only about the symbols, it’s also interactive and lets you attach the debugger after the process crashes, which is neat.

comment 3y ago · link · parent

The best part of is that you can get all this goodness even without having Swift code in your codebase.

Just link your C++ (or whatever) project with The Swift runtime (swiftrt.o and libswiftCore.so), and there you have it without writing any Swift.

8.

On-Crash Backtraces in Swift(swift.org ↗)

127 points · by yaglo · 3y ago · 19 comments