Objective-C has _Nullable and _Nonnull specifiers. It has no null, it has nil instead.
Learned from the best? (Java with NullPointerException in a language that has no pointers)
Objective-C has _Nullable and _Nonnull specifiers. It has no null, it has nil instead.
Learned from the best? (Java with NullPointerException in a language that has no pointers)
And the first working day of the week seems to be closed by finding Apple bug that leads to a crash.
For those interested: UITextField with any view as inputAccessoryView and keyboard type set to number pad. Tap once to get keyboard bubble, tap outside for bubble to close, tap input field again to get a full keyboard.
Do this on iPad with floating keyboard and it crashes.
CGRectEqualToRect is deprecated. Apple tells to use operator ==.
Using operator == gives compilation error: Invalid operands to binary expression ('const CGRect' and 'const CGRect')
When working with Apple tech, every day is Monday.
How come Elon hasn't yet sued Apple for this:
https://developer.apple.com/documentation/uikit/uikeyboardtype/twitter?language=objc
It wouldn't be Monday without Objective-C again...
@synthesize propName = mistypedVar;
Compiles. Creates a mistypedVar for your inconvenience. Enjoy debugging, Aurimas.
What's New in Swift 6.2?
https://www.hackingwithswift.com/articles/277/whats-new-in-swift-6-2
#ycombinator #hacking_with_swift #apple #developer #news #tutorials #swift #ios #macos #watchos #tvos #api #swift_5 #swiftui #swift_ui #tutorial #ios_17 #ios_16 #ios_15 #wwdc #ipad #iphone #free #guide #objective_c #macOS #uikit #visionos #watchkit
DeepSeek v3 and r1 free unlimited
https://www.blackbox.ai
#ycombinator #blackbox #blackboxai #chat #autocomplete #bash #c #code_recommendation #cpp #csharp #css #domination #golang #haskell #html #intellicode #intellisense #java #javascript #julia #jupyter #keybindings #kite #kotlin #lua #method_32_completion #node #node_js #nodejs #objectivec #objective_c #ocaml #perl #php #python #react #ruby #rust #snippets #swift #typescript
I was listening to an old #oxide podcast about #Rust and our individual perception of beauty related to computer languages.
Well, my personal beautiful languages are #modula2 and #objective_c. #Swift was about to classify as such, but took a wrong turn and followed the rocky path of C++ 😒
[Перевод] Macroni: рецепт поступательного улучшения языка программирования
Хотя, Clang и используется в качестве инструмента для рефакторинга и статического анализа, у него есть серьёзный недостаток: в абстрактном синтаксическом дереве не предоставляется информации о происхождении конкретных расширений-макросов на CPP , за счёт которых может надстраиваться конкретный узел AST. Кроме того, Clang не понижает расширения-макросы на уровень LLVM, то есть, до кода в формате промежуточного представления (IR). Из-за этого оказывается запредельно сложно конструировать такие схемы статического анализа, при которых учитывались бы макросы. Сейчас эта тема активно исследуется. Но ситуация налаживается, поскольку прошлым летом был создан инструмент Macroni , упрощающий статический анализ именно такого рода. В Macroni разработчики могут определять синтаксис новых языковых конструкций на C с применением макросов, а также предоставлять семантику для этих конструкций при помощи MLIR (многоуровневого промежуточного представления). В Macroni используется инструмент VAST , понижающий код C до MLIR. В свою очередь, инструмент PASTA позволяет выяснить, откуда те или иные макросы попали в AST, и на основании этой информации макросы также удаётся понизить до MLIR. После этого разработчики могут определять с обственные MLIR-конвертеры для преобразования вывода Macroni в предметно-ориентированные диалекты MLIR, чтобы анализировать предмет с учётом многочисленных нюансов. В этой статье будет на нескольких примерах показано, как Macroni позволяет дополнять C более безопасными языковыми конструкциями и организовать анализ безопасности C.
https://habr.com/ru/companies/timeweb/articles/821787/
#timeweb_статьи_перевод #Macroni #программирование #c #c++ #LLVM #AST #Clang #MLIR #ABI #API #Линус_Торвальдс #Sparse #Objective_C
【Swift】QRコードを生成する(ロゴ入り、色変更などのカスタマイズQRコード)
https://qiita.com/generosity_honda/items/44bb61b541d93acfcded?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
I like the #objective_c syntax! It looks quite uncommon and cool.
#Swift teilt sich mit #Objective_C die Chartplatzierung ...