Coding Shorts: Methods, Funcs & Actions...Oh, My!

Поделиться
HTML-код
  • Опубликовано: 6 сен 2024

Комментарии • 19

  • @matejskerjanc7703
    @matejskerjanc7703 4 месяца назад +8

    Thought last param is out in func

    • @swildermuth
      @swildermuth  4 месяца назад +4

      D'oh. Absolutely right. that's why I should have used something like this:
      public static string Concat(int x, double y) => $"{x},{y}";
      Func concat = Maths.Concat;

  • @Rhysling2
    @Rhysling2 4 месяца назад +2

    This was excellent. Thank you.

  • @minhquangvu9310
    @minhquangvu9310 4 месяца назад +1

    Good job.

  • @ytxzw
    @ytxzw 4 месяца назад

    Thank you for such a good explanation.

  • @margosdesarian
    @margosdesarian 4 месяца назад

    Excellent tutorial!!

  • @hozmannew896
    @hozmannew896 4 месяца назад

    Perfect as usual.

  • @CrankViewer
    @CrankViewer 4 месяца назад

    Nice, thanks!

  • @alexanderx7959
    @alexanderx7959 4 месяца назад

    hmm... btw, why do they call them Actions? why not Procedures, which was initially used for ones with no return type? :)

    • @swildermuth
      @swildermuth  4 месяца назад

      I didn't name them, but I think actions might be a better name. Procedures implies state change (at least to me) whereas "Action" seems more generic (it could be for logging, etc.).

    • @alexanderx7959
      @alexanderx7959 4 месяца назад

      @@swildermuth yep, i see your point. makes sense.

  • @irvinwaldman4233
    @irvinwaldman4233 4 месяца назад

    promo code doesn't seem to work

    • @swildermuth
      @swildermuth  4 месяца назад

      DAYOFASPIRE should work for 20% off.