-
-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
x:action/improveImprove existing functionality/contentImprove existing functionality/content
Description
Given that the main focus of this exercise is to use erlang libaries, it feels strange to receive analyzer errors for the following two solutions:
random_ship_registry/0 (prompts to use Enum.random/1):
def random_ship_registry_number() do
digits = :rand.uniform(9000) + 999
"NCC-#{digits}"
endformat_stardate/1 (prompts to use :io_lib.format("~.1f", [stardate]) |> to_string()):
def format_stardate(stardate) do
stardate
|> :erlang.float_to_binary([{:decimals, 1}])
endWould it make sense to have the analyzer allow one or both of these alternate solutions, since they are still using erlang?
solex
Metadata
Metadata
Assignees
Labels
x:action/improveImprove existing functionality/contentImprove existing functionality/content