Когда компилятор снова ругается
if (consted_defn == interp->type_def) { Ast_Type_Definition* target_type = resolve_constant_expression_to_type_or_ turn_null if we should yield(Interp, must_implement, site, queued_to) assert(target_type != NULL); Ast_Type_Definition* result_defn; return consted_defn; else if (consted_defn->array_element_type() == interp->type_def) { if (consted == AST_LITERAL) { auto literal = static_cast<Ast_Literal *>(consted); if (literal->value_type == LITERAL_ARRAY) auto info = literal->values_array_literal_info; if (info->report-nonconstant. "This array literal is being used as a type restriction, so it must be constant, but it is not constant. The nonconstant array literal does not array is not array index (the first element of is index 0), n)." reporter->report_info("Here is the type res } } return NULL; } else { // We are actually fine! assert(info->statements_in_order.count == info->input_expres Local_Array<Must_Implement_Matching_Info> matches; S32 index = 0; for (info->statements_in_order) { defer ( index += 1; ); auto constant_element = eval_to_literal_or_constant(con if (constant_element) reporter->report_error("We expected this to be constant.");
Слева мужчина спокойно сидит, сложив руки, а справа показан плотный фрагмент исходного кода компилятора с сообщениями об ошибках и проверками констант. Шутка строится на контрасте между невозмутимым видом программиста и хаотичным, пугающим кодом, который приходится разбирать при ошибке компиляции. Такой мем отправляют как реакцию на сложный баг, бессмысленную ошибку компилятора или ситуацию «всё выглядит нормально, пока не запускаешь код». EN: A man sits calmly with his hands folded on the left, while the right side shows a dense compiler source-code fragment with error messages and constant checks. The joke comes from the contrast between the programmer’s calm expression and the chaotic, intimidating code that must be debugged after a compilation error. People send this meme as a reaction to a difficult bug, a nonsensical compiler error, or a situation where everything looks fine until the code is run.
- @gentoomemes / 20987 2026-05-29
- Type
- image
- Size
- 800×416 · 62.1 KiB
- Mood
- ироничный, абсурдный
- Language
- en
- Added