Hi Larry,
I can read in this page:
~~~~
5. Design by Contract Throughout
All features include proper contracts:
new_get_request (a_url: STRING): SIMPLE_WEB_REQUEST
require
url_not_void: a_url /= Void
url_not_empty: not a_url.is_empty
do
create Result.make_get (a_url)
ensure
result_not_void: Result /= Void
end
~~~~
Hmmm, proper? What about those postconditions that
are in `make_get`:
~~~~
method_set: method ~ Http_method_get
url_set: url ~ a_url
~~~~
I guess they should appear in `new_get_request` as well.
Otherwise how do you verify that `new_get_request` does
its job. What about if the implementation was buggy with
a call to `make_post`?
--
Eric Bezault
mailto:
er...@gobosoft.com
http://www.gobosoft.com
> claude_eiffel_op_docs <
https://github.com/ljr1981/claude_eiffel_op_docs/
> blob/main/simple_api_writeup.md>
>
> Best,
>
> Larry
>
> --
> You received this message because you are subscribed to the Google
> Groups "Eiffel Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
eiffel-users...@googlegroups.com <mailto:
eiffel-
>
users+un...@googlegroups.com>.
> users/f64f88ab-0652-4cbc-8b0f-56c00abfe54bn%
40googlegroups.com <https://
>
groups.google.com/d/msgid/eiffel-users/
> f64f88ab-0652-4cbc-8b0f-56c00abfe54bn%
40googlegroups.com?
> utm_medium=email&utm_source=footer>.