From 49096484ae10226c8825bd7aceecc47049c9e226 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Fri, 8 Apr 2022 22:42:12 +0200 Subject: [PATCH] Correct statement about type annotations --- Day_5/Day_5.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Day_5/Day_5.jl b/Day_5/Day_5.jl index 499b541..82863d6 100644 --- a/Day_5/Day_5.jl +++ b/Day_5/Day_5.jl @@ -1,5 +1,5 @@ ### A Pluto.jl notebook ### -# v0.18.4 +# v0.19.0 using Markdown using InteractiveUtils @@ -113,7 +113,7 @@ Julia as a functional language does not have classes like in object oriented lan Using structs, you can define your own types. Structs use type composition. This means that you combine types into a new one. -In Julia, type annotations DO NOT lead to any performance boosts. Structs build an **exception**! If you are writing a struct, you have to use type annotations with **concrete types** (not abstract)! +In general, type annotations DO NOT lead to any performance boosts in Julia. Structs build an **exception**! If you are writing a struct, you have to use type annotations with **concrete types** (not abstract)! """ # ╔═╡ 3e3e324d-5650-4f81-87cf-fb0f6f55d9d1