take advantage of types and other rust features to refactor#8
Merged
edfloreshz merged 3 commits intoedfloreshz:mainfrom Aug 31, 2021
Merged
Conversation
Agregue la opcion de especificar la version en la biblioteca estandar. Modifique algunos nombres de variables para hacerlos mas explicitos.
Owner
|
En general me parece un muy buen aporte, solo corregí un detalle, omitiste el que la biblioteca estándar también puede recibir una versión, fuera de eso me pareció perfecto, gracias 👍🏼 |
Contributor
Author
|
Yay de lujo. En efecto no tuve presente que la biblioteca estándar tenía
versión, pero tienes toda la razón del mundo.
El mar., 31 de agosto de 2021 13:12, Eduardo Flores <
***@***.***> escribió:
… En general me parece un muy buen aporte, solo corregí un detalle, omitiste
el que la biblioteca estándar también puede recibir una versión, fuera de
eso me pareció perfecto, gracias 👍🏼
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGBBZAFDNU2262M5DX3T7LT7ULPJANCNFSM5DC7OZ6A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Este PR no es necesariamente para hacérsele merge (aunque probablemente sea buena idea). Es más que nada una exploración de lo que podría ser una estructura factible. Los detalles importantes se conservan, pero el flujo en general cambia:
'static. La segunda esstd::borrow::Cowpues la versión puede venir de dos lugares diferentes: la linea de comandos y el Cargo.toml,Option. Por ejemplo para la versión y el query, estos son tipos de datos fundamentalmente opcionales. Pueden o no estar, así que Option es una buena forma de manejarlos en vez de un string vacío o no.y bueno, escribí este código mientras estaba en una junta aburrida. Ahora si que "en mi máquina funciona", jeje. Como decía arriba, no pretendo que se le haga merge, son un chingo de cambios. Más bien es para mostrar otra forma posible de atacar este problema.
Saludos!